package hujz.java.file_server.http;

public class FileServerResponse {

    private String s;
    private FileInfo r;
    private String m;

    public String getS() {
        return s;
    }

    public void setS(String s) {
        this.s = s;
    }

    public FileInfo getR() {
        return r;
    }

    public void setR(FileInfo r) {
        this.r = r;
    }

    public String getM() {
        return m;
    }

    public void setM(String m) {
        this.m = m;
    }

    public static class FileInfo {
        private String fileId;
        private String fullFileId;
        private MetaData metadata;

        public String getFileId() {
            return fileId;
        }

        public void setFileId(String fileId) {
            this.fileId = fileId;
        }

        public String getFullFileId() {
            return fullFileId;
        }

        public void setFullFileId(String fullFileId) {
            this.fullFileId = fullFileId;
        }

        public MetaData getMetadata() {
            return metadata;
        }

        public void setMetadata(MetaData metadata) {
            this.metadata = metadata;
        }
    }

    public static class MetaData {
        private long bytes;
        private String extension;
        private String hash;
        private String modified;
        private String name;

        public long getBytes() {
            return bytes;
        }

        public void setBytes(long bytes) {
            this.bytes = bytes;
        }

        public String getExtension() {
            return extension;
        }

        public void setExtension(String extension) {
            this.extension = extension;
        }

        public String getHash() {
            return hash;
        }

        public void setHash(String hash) {
            this.hash = hash;
        }

        public String getModified() {
            return modified;
        }

        public void setModified(String modified) {
            this.modified = modified;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
